var app = angular.module('ZJPC');

app.controller('TrackinfoController', ['$rootScope', '$scope', '$timeout', 'CesiumService', 'ModalService',
  function($rootScope, $scope, $timeout, CesiumService, ModalService) {

    // CesiumService.changeColor().getTrackInfo();

    $scope.info = {};

    $scope.$on("nameOver", function(e, value) {
      $scope.info = value;
      $scope.$apply();
    })

    $scope.openDetail = function (photo) {
      var data = {
        zpzp: photo
      }
      ModalService.openModalBySize('../templates/region/detail/trackInfoDetail.html', 'FaceSingleDetailController', data,'facesize');
    }


}]);